package com.rchat.pocmini.channel;

import com.airtalkee.sdk.entity.AirChannel;
import com.airtalkee.sdk.entity.AirContact;

import java.util.List;

/**
 * Created by ljd on 2017/2/6.
 * <p>
 * 频道类，用以表示频道信息
 */

public class PocChannel implements PocChannelInterface {

    private AirChannel airChannel;

    public PocChannel() {
        airChannel = new AirChannel();
    }

    /**
     * 获取频道ID
     *
     * @return 频道ID
     */
    @Override
    public String getChannelId() {
        return airChannel.getId();
    }

    /**
     * 获取频道名称
     *
     * @return 频道名称
     */
    @Override
    public String getChannelName() {
        return airChannel.getDisplayName();
    }

    /**
     * 频道成员列表
     *
     * @return
     */
    @Override
    public List<AirContact> getMembers() {
        return airChannel.MembersGet();
    }

}
